package com.stp.houbb;

import com.github.houbb.sensitive.word.api.IWordAllow;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * 自定义敏感词白名单
 */
@Component
public class CustomWordAllow implements IWordAllow {
    @Override
    public List<String> allow() {
        // 从数据库中查询白名单敏感词
        return Arrays.asList("五星红旗");
    }
}
